package oop4.chongxie;

import oop4.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class PetDoctorTest {
    public static void main(String[] args) {
        PetDoctor p=new PetDoctor("李教授");
        Dog pet=new Dog("大黄",99,23,"公","藏獒");
        pet.print();
        p.cure(pet);
        System.out.println("治疗后:");
        pet.print();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>");
        Penguin g=new Penguin("小蓝企鹅",66,45,"公");
        g.print();
        p.cure(g);
        System.out.println("治疗后：");
        g.print();
        System.out.println(">>>>>>>>>>>>>>>>>>>");
        Tiger t=new Tiger();
        t.setName("小美丽");
        t.setHealth(1);
        t.setLove(55);
        t.setSex("母");
        t.print();
        p.cure(t);
        System.out.println("治疗后:");
        t.print();
    }
}
